package oop_05.homework_03;

public class Computer_Test {
    public static void main(String[] args) {
        Computer computer;
        computer = new Sum(99,33,0);
        if (computer instanceof Sum){
            Sum jia = (Sum)computer;
            jia.sum();
        }
        computer = new multiply(99,33,0);
        if(computer instanceof multiply){
            multiply chen = (multiply)computer;
            chen.multiply();
        }
        computer = new Sub(99,33,0);
        if(computer instanceof Sub){
            Sub count = (Sub)computer;
            count.sub();
        }
        computer = new divide(99,33,0);
        if(computer instanceof divide){
            divide chen = (divide)computer;
            chen.divide();
        }

    }
}
